package com.foton.designmodel.decorator.orderprice.entity;


import com.foton.order.mapper.OrderMapper;
import com.foton.util.SpringFactoryUtil;
import lombok.*;

/**
 *  订单实体类
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Order {

    /**
     * 订单编码
     */
    private Long id;


    /**
     * 购买用户ID
     */
    private Long userId;


    /**
     * 商品图片
     */
    private String productId;


    /**
     * 商品单价
     */
    private int price;


    /**
     * 购买商品的数量
     */
    private int amount;


    /**
     * 优惠前结算金额
     */
    private int payMoney;

    /**
     * 实付结算金额
     */
    private int acutMoney;

    public static void changeOrderStatus(){
        OrderMapper bean = SpringFactoryUtil.getBean(OrderMapper.class);
        System.out.println(bean);
    }



}
